package com.dw.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dw.core.entity.Admin;
import com.dw.core.entity.Role;

import java.util.List;
import java.util.Set;

/**
 * @author zhangjing
 * @date 2020/8/21 14:52
 * @Description
 */
public interface IRoleService extends IService<Role> {

    /**
     * find roles by admin
     * @param admin
     * @return
     */
    List<Role> findRolesByAdmin(Admin admin);

    /**
     * get role keys
     * @param admin
     * @return
     */
    Set<String> getRoleKeysByAdmin(Admin admin);

}
